<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>对象的访问</title>
</head>
<body>
	
</body>
</html>
<script>
	var str = new String('hslsapod4ads68');
	//alert(str[2])
    var attr = new Array(12,65,"tre",true,"60")
    // alert(attr)
    var obj = {name:"Joy",age:'18',height:'175cm',KK:"haha"}
    alert(obj.name)
    document.write(obj['name'])
</script>
